#include <bits/stdc++.h>
using namespace std;
#define int long long
void solve()
{
    int n,k;
    cin>>n>>k;
    string s;
    cin>>s;
    s=" "+s;
    int z=0;
    for(int i=1;i<=n;i++)
    {
        if(s[i]=='1')z++;
    }
    if(k>n/2||k>=z)cout<<"Alice"<<endl;
    else cout<<"Bob"<<endl;
}
signed main()
{
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int T=1;
    cin>>T;
    while(T--)
    {
       solve();
    }
    return 0;
}